/**
 * 
 */
package com.brother.goallife.rest.service.impl;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import com.brother.goallife.rest.model.User;
import com.brother.goallife.rest.service.HelloModule;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;

/**
 * @author anhtuan_truong
 * 
 */
@Path("/hello")
@Api(value = "/hello")
public class HelloModuleImpl implements HelloModule {

	@GET
	@Path("/")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes
	@ApiOperation(value = "Get hello gretting", response = User.class)
	public Response hello() {
		User user = new User();
		user.setFirstname("Anh Tuan");
		user.setLastname("TRUONG");
		user.setEmail("anhtuan.truong@officience.com");
		return Response.status(200).type(MediaType.APPLICATION_JSON).entity(user).build();
	}
}
